package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Le账户-团队统计信息(KOL)
 * </p>
 *
 * @author 作者
 * @since 2022-12-12
 */
@Getter
@Setter
@TableName("app_user_team")
@ApiModel(value = "AppUserTeam对象", description = "Le账户-团队统计信息(KOL)")
public class AppUserTeam extends Model<AppUserTeam> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户编号")
      @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Integer userId;

    @ApiModelProperty("生态建设等级")
    @TableField("eco_level")
    private Integer ecoLevel;

    @ApiModelProperty("生态建设值")
    @TableField("eco_value")
    private BigDecimal ecoValue;

    @ApiModelProperty("团队人数")
    @TableField("team_member")
    private Integer teamMember;

    @ApiModelProperty("团队业绩")
    @TableField("team_value")
    private Integer teamValue;

    @ApiModelProperty("邀请人ID 默认0没有邀请人")
    @TableField("inviter_id")
    private Integer inviterId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    public Serializable pkVal() {
        return this.userId;
    }

}
